package com.zmn.plat.common.dictionary;

import com.zmn.common.dto.KvDTO;
import com.zmn.plat.common.constant.ProductTitleConstants;

import java.util.ArrayList;
import java.util.List;

/**
 * @author tanbiao
 * @description:复用产品信息页面顶部信息
 * @modifier
 * @since 2021/3/30 17:59
 **/
public class ProductTitleDict {
    /**
     *
     */
    private static final List<KvDTO> PRODUCT_PICTURE_LIST_ITEMS = new ArrayList<>();

    /**
     *
     */
    private static final List<KvDTO> PRODUCT_GURENTEE_LIST_ITEMS = new ArrayList<>();

    /**
     * 产品图片
     *
     * @return
     */
    public static List<KvDTO> listProductPicTitle() {
        if (PRODUCT_PICTURE_LIST_ITEMS.size() == 0) {
            PRODUCT_PICTURE_LIST_ITEMS.add(new KvDTO(ProductTitleConstants.COPY_TYPE_PRODUCT_SMALL_PIC_CODE, "产品小图"));
            PRODUCT_PICTURE_LIST_ITEMS.add(new KvDTO(ProductTitleConstants.COPY_TYPE_PRODUCT_MIDDLE_PIC_CODE, "产品中图"));
            PRODUCT_PICTURE_LIST_ITEMS.add(new KvDTO(ProductTitleConstants.COPY_TYPE_PRODUCT_BIG_PIC_CODE, "产品大图"));
            PRODUCT_PICTURE_LIST_ITEMS.add(new KvDTO(ProductTitleConstants.COPY_TYPE_PRODUCT_VIDO_CODE, "产品视频"));
            PRODUCT_PICTURE_LIST_ITEMS.add(new KvDTO(ProductTitleConstants.COPY_TYPE_PRODUCT_SERVICE_CODE, "服务流程"));
        }
        return PRODUCT_PICTURE_LIST_ITEMS;
    }


    /**
     * 产品保障
     *
     * @return
     */
    public static List<KvDTO> listProductGurenteeTitle() {
        if (PRODUCT_GURENTEE_LIST_ITEMS.size() == 0) {
            PRODUCT_GURENTEE_LIST_ITEMS.add(new KvDTO(ProductTitleConstants.COPY_TYPE_PRODUCT_GURENTEE_SMALL_PIC_CODE, "保障小图"));
            PRODUCT_GURENTEE_LIST_ITEMS.add(new KvDTO(ProductTitleConstants.COPY_TYPE_PRODUCT_GURENTEE_CONTENT_CODE, "保障详情"));
        }
        return PRODUCT_GURENTEE_LIST_ITEMS;
    }
}
